package com.aruba.paging3application.adapter

import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.paging.LoadState
import androidx.paging.LoadStateAdapter
import com.aruba.paging3application.databinding.MovieLoadmoreBinding

/**
 * Created by aruba on 2021/9/22.
 */
class LoadMoreAdapter : LoadStateAdapter<BindingViewHolder>() {
    override fun onBindViewHolder(holder: BindingViewHolder, loadState: LoadState) {
    }

    override fun onCreateViewHolder(parent: ViewGroup, loadState: LoadState): BindingViewHolder {
        val binding = MovieLoadmoreBinding.inflate(
            LayoutInflater.from(parent.context),
            parent, false
        )
        return BindingViewHolder(binding)
    }
}